package com.hxd.tabactivityfragment.ui.activity

import com.hxd.tabactivityfragment.R
import com.hxd.tabactivityfragment.adapter.FindFragmentAdapter
import com.hxd.tabactivityfragment.common.MyActivity
import com.vondear.rxtool.RxSPTool
import kotlinx.android.synthetic.main.activity_data_exhibition.*


/**
 *  项目名：    FoodOrigins
 *  包名：      com.hxd.tabactivityfragment.ui.activity
 *  文件名:     DataExhibitionActivity
 *  创建者:     HXD
 *  创建时间:   2019/3/24 13:33
 *  描述:       数据展示界面
 */

class DataExhibitionActivity : MyActivity(){

    val TabTitles_1 = arrayOf("奶源", "厂商", "产品", "认证机构")
    private var mPagerAdapter: FindFragmentAdapter? = null

    override fun getLayoutId(): Int {
        return R.layout.activity_data_exhibition
    }

    override fun getTitleBarId(): Int {
        return R.id.tb_showData_find
    }

    override fun initData() {
        var data = intent.getStringExtra("result")
        RxSPTool.putString(getContext(), "IMPSucharDataInfoBean", data)
    }

    override fun initView() {
        mPagerAdapter = FindFragmentAdapter(this)
        mEasyIndicator.setTabTitles(TabTitles_1)
        mEasyIndicator.setViewPager(mViewPager, mPagerAdapter)
    }


}